const mongoose = require('mongoose');
//声明schema
const userSchema = mongoose.Schema({
    username: String,
    password: String,
    email:String,
    avatar: String
});
//根据schema生成model
const model = {
    User: mongoose.model('User', userSchema)
};

module.exports = model;
